package com.cksys.achievement.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ClassName: Roles
 * @author: zyx
 * @E-mail: 1377631190@qq.com
 * @DATE: 2020/3/8 19:31
 */
@Getter
@AllArgsConstructor
public enum Roles {

    /**
     * ROLE_ADMIN   管理员权限
     * ROLE_USER    用户权限
     */
    ROLE_SUPER("ROLE_SUPER", "ROLE_SUPER"),
    ROLE_ADMIN("ROLE_ADMIN", "ROLE_ADMIN"),
    ROLE_USER("ROLE_USER", "ROLE_USER");

    @JsonValue
    private String roleNameJson;

    @EnumValue
    private String roleName;

}
